package com.guigu.alibaba.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;


@Component
@FeignClient(value = "seata-account-service")
public interface AccountService {
    @GetMapping("/account/decrease")
    void decrease(@RequestParam("userId") Long userId,
                  @RequestParam("money") BigDecimal money);
}
